# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-tblib
pkgver=1.7.0
pkgrel=0
pkgdesc="Serialization library for Exceptions and Tracebacks"
url="https://github.com/ionelmc/python-tblib"
arch="noarch"
license="BSD-2-Clause"
depends="python3"
depends="py3-attrs py3-automat py3-constantly py3-hyperlink py3-idna py3-incremental py3-more-itertools py3-packaging py3-pluggy py3-py py3-pyhamcrest py3-parsing py3-six py3-twisted py3-wcwidth py3-zope-interface"
makedepends="py3-setuptools python3-dev py3-docutils"
checkdepends="py3-coverage py3-pytest py3-flake8 py3-isort py3-pygments py3-mccabe py3-bleach py3-pep517 py3-pycodestyle py3-pyflakes py3-pytoml py3-webencodings"
source="https://pypi.python.org/packages/source/t/tblib/tblib-$pkgver.tar.gz"
builddir="$srcdir/tblib-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="10dcff18a1da386d9dd6bae35608f4a2d3bc8f87c15fcf49d886f98d95a6defd348ef0dc5637e03f4c553a933a0ecb4c215cf15b1e78fca58fea10052f9fb4e9  tblib-1.7.0.tar.gz"
